<link href="assets/link/bootstrap-datetimepicker.min.css" rel="stylesheet">

<!-- 主页-入职管理 -->
<section id="container">
    <!--main content start-->
    <section id="main-content">
        <section class="wrapper">
            <!--state overview end-->
            <div class="row">
                <div class="col-lg-12">
                    <section class="panel">
                        <header class="panel-heading">
                            入职信息
                        </header>
                        <div class="panel-body">
                            <div class="form-group customerForm">
                                <label class="col-sm-2 control-label">常驻公司</label>
                                <div class="col-sm-10">
                                    <select class="form-control" certus-required
                                            ng-model="rzlcStepEntity.baseUser.belongCompanyCode" ng-change="getBelongCompanyName(rzlcStepEntity.baseUser.belongCompanyCode)">
                                        <option ng-repeat="cps in belongCompanyCodeSelect" value="{{cps.code}}">
                                            {{cps.name}}
                                        </option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group customerForm rzcomSelect" id="rzcomSelectId1">
                                <label class="col-sm-2 control-label">入职管理架构</label>
                                <div class="col-sm-10">
                                    <select class="form-control" name="{{cps.departmentName}}" certus-required
                                            ng-model="rzlcStepEntity.baseUser.belongCompanyCode1"
                                            ng-change="companyChange(rzlcStepEntity.baseUser.belongCompanyCode1,1)">
                                        <option ng-repeat="cps in rzcomSelectIdSelect1" value="{{cps.departmentCode}}">
                                            {{cps.departmentName}}
                                        </option>
                                    </select>
                                </div>
                            </div>

                            <div class="form-group customerForm">
                                <label class="col-sm-2 control-label">人事一级部门*</label>
                                <div class="col-sm-10">
                                    <div class="dropdown">
                                        <button type="button" class="btn dropdown-toggle" id="dropdownMenu1"
                                                data-toggle="dropdown" ng-model="rzlcStepEntity.baseUser.dep1_name">一级部门
                                            <span class="caret"></span>
                                        </button>
                                        <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
                                            <li role="presentation">
                                                <a role="menuitem" tabindex="-1" href="javascript:void(0)"
                                                   onclick="dep1_name_change(this)" ng-repeat="dd in dropdown1List">{{dd.departmentName}}</a>
                                            </li>
                                        </ul>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group customerForm">
                                <label class="col-sm-2 control-label">是否开通企业邮箱*</label>
                                <div class="col-sm-10">
                                    <input type="radio"
                                           ng-model="rzlcStepEntity.baseUser.willHaveEmail"
                                           name="ddd"
                                           ng-value="0">不开</input>
                                    <input type="radio"
                                           ng-model="rzlcStepEntity.baseUser.willHaveEmail"
                                           name="ddd"
                                           ng-value="1">开</input>
                                    <input type="radio"
                                           ng-model="rzlcStepEntity.baseUser.willHaveEmail"
                                           name="ddd"
                                           ng-value="xxxx">请选择</input>
                                </div>
                            </div>

                            <div class="form-group customerForm">
                                <label class="col-sm-2 control-label">是否开通企业微信*</label>
                                <div class="col-sm-10">
                                    <input type="radio"
                                           ng-model="rzlcStepEntity.baseUser.willHaveWeChat"
                                           name="ccc"
                                           ng-value="0">不开</input>
                                    <input type="radio"
                                           ng-model="rzlcStepEntity.baseUser.willHaveWeChat"
                                           name="ccc"
                                           ng-value="1">开</input>
                                    <input type="radio"
                                           ng-model="rzlcStepEntity.baseUser.willHaveWeChat"
                                           name="ccc"
                                           ng-value="xxxx">请选择</input>
                                </div>
                            </div>

                            <div class="form-group customerForm">
                                <label class="col-sm-2 control-label">是否开通bpm*</label>
                                <div class="col-sm-10">
                                    <input type="radio"
                                           ng-model="rzlcStepEntity.baseUser.willHaveBpm"
                                           name="fff"
                                           ng-value="0">不开</input>
                                    <input type="radio"
                                           ng-model="rzlcStepEntity.baseUser.willHaveBpm"
                                           name="fff"
                                           ng-value="1">开</input>
                                    <input type="radio"
                                           ng-model="rzlcStepEntity.baseUser.willHaveBpm"
                                           name="fff"
                                           ng-value="xxxx">请选择</input>
                                </div>
                            </div>

                            <div class="form-group customerForm">
                                <label class="col-sm-2 control-label">是否自带电脑</label>
                                <div class="col-sm-10">
                                    <select class="form-control" certus-required
                                            ng-model="rzlcStepEntity.baseUser.sfzddn">
                                        <option ng-repeat="cps in sfzddnSelect" value="{{cps.code}}">{{cps.name}}
                                        </option>
                                    </select>
                                </div>
                            </div>
                            <!--<div class="form-group customerForm">
                                <label class="col-sm-2 control-label">入职部门</label>
                                <div class="col-sm-10">
                                    <select class="form-control" certus-required  ng-model="rzlcStepEntity.baseUser.departmentUser.departmentCode" ng-change="departmentChange()">
                                        <option ng-repeat="ds in departmentSelect" value="{{ds.departmentCode}}">{{ds.departmentName}}</option>
                                    </select>
                                </div>
                            </div>-->
                            <div class="form-group customerForm">
                                <label class="col-sm-2 control-label">拟入职时间</label>
                                <div class="col-sm-10">
                                    <input type="text" id="jiTime" class="form-control" certus-required>
                                </div>
                            </div>
                            <div class="form-group customerForm">
                                <label class="col-sm-2 control-label">直接领导</label>
                                <div class="col-sm-10">
                                    <input type="text" list="browsers" class="form-control" certus-an-limit-length="50"
                                           certus-required ng-model="rzlcStepEntity.baseUser.leaderName"
                                           placeholder="自动检索，查询结果较多时候，系统不显示，需要尽量多输入相关字段">
                                    <datalist id="browsers">
                                        <option ng-repeat="x in leaderNameSelect" value="{{x.userName}}">
                                    </datalist>
                                </div>
                            </div>
                            <div class="form-group customerForm">
                                <label class="col-sm-2 control-label">岗位名称</label>
                                <div class="col-sm-10">
                                    <input type="text" certus-an-limit-length="20" certus-required
                                           ng-model="rzlcStepEntity.baseUser.positonName" class="form-control">
                                </div>
                            </div>

                            <div class="form-group customerForm">
                                <label class="col-sm-2 control-label">员工姓名(中文)</label>
                                <div class="col-sm-10">
                                    <input type="text" certus-an-limit-length="20" certus-required
                                           ng-model="rzlcStepEntity.baseUser.userName" class="form-control">
                                </div>
                            </div>
                            <div class="form-group customerForm">
                                <label class="col-sm-2 control-label">性别</label>
                                <div class="col-sm-10">
                                    <select class="form-control" certus-required ng-model="rzlcStepEntity.baseUser.sex">
                                        <option ng-repeat="ss in sexSelect" value="{{ss.code}}">{{ss.name}}</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group customerForm">
                                <label class="col-sm-2 control-label">出生日期</label>
                                <div class="col-sm-10">
                                    <input type="text" value="" class="form-control" id="birTime" certus-required>
                                </div>
                            </div>
                            <div class="form-group customerForm">
                                <label class="col-sm-2 control-label">婚姻状况</label>
                                <div class="col-sm-10">
                                    <select class="form-control" ng-model="rzlcStepEntity.baseUser.isMarriage">
                                        <option ng-repeat="ms in marriageSelect" value="{{ms.code}}">{{ms.name}}
                                        </option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group customerForm">
                                <label class="col-sm-2 control-label">联系方式1</label>
                                <div class="col-sm-10">
                                    <input type="text" value="" certus-phone-number="9" class="form-control"
                                           certus-required ng-model="rzlcStepEntity.baseUser.phoneNumber">
                                </div>
                            </div>
                            <div class="form-group customerForm">
                                <label class="col-sm-2 control-label">首次参加工作时间</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" certus-required
                                           id="firTime">
                                </div>
                            </div>
                            <div class="form-group customerForm">
                                <label class="col-sm-2 control-label">面试人员</label>
                                <div class="col-sm-10">
                                    <input type="text" list="browsers1" class="form-control" certus-an-limit-length="50"
                                           placeholder="自动检索，查询结果较多时候，系统不显示，需要尽量多输入相关字段"
                                           ng-model="rzlcStepEntity.interviewerManName">
                                    <datalist id="browsers1">
                                        <option ng-repeat="ina in interviewerNameSelect" value="{{ina.userName}}">
                                    </datalist>
                                </div>
                            </div>
                            <div class="form-group customerForm">
                                <label class="col-sm-2 control-label">英文名</label>
                                <div class="col-sm-10">
                                    <input type="text" certus-an-limit-length-str="20" class="form-control"
                                           ng-model="rzlcStepEntity.baseUser.englishName">
                                </div>
                            </div>
                            <div class="form-group customerForm">
                                <label class="col-sm-2 control-label">工作常驻地址</label>
                                <div class="col-sm-10">
                                    <input type="text" value="" class="form-control" certus-an-limit-length="50"
                                           certus-required ng-model="rzlcStepEntity.baseUser.basedArea">
                                </div>
                            </div>

                            <div class="form-group customerForm">
                                <label class="col-sm-2 control-label">居住地(地址)</label>
                                <div class="col-sm-10">
                                    <input type="text" value="" certus-an-limit-length="50" class="form-control"
                                           ng-model="rzlcStepEntity.baseUser.address">
                                </div>
                            </div>
                            <div class="form-group customerForm">
                                <label class="col-sm-2 control-label">联系方式2</label>
                                <div class="col-sm-10">
                                    <input type="text" value="" certus-phone-number="9"
                                           ng-model="rzlcStepEntity.baseUser.phoneNumber1" class="form-control">
                                </div>
                            </div>
                            <div class="form-group customerForm">
                                <label class="col-sm-2 control-label">个人邮箱</label>
                                <div class="col-sm-10">
                                    <input type="text" value="" certus-email="9" certus-required class="form-control"
                                           ng-model="rzlcStepEntity.baseUser.personalEmail">
                                </div>
                            </div>
                            <div class="form-group customerForm">
                                <label class="col-sm-2 control-label">备注说明</label>
                                <div class="col-sm-10">
                                    <textarea class="form-control" certus-an-limit-length="50"
                                              ng-model="rzlcStepEntity.opinionMsg"></textarea>
                                </div>
                            </div>
                        </div>
                    </section>
                    <section class="panel">
                        <div class="panel-body">
                            <p class="default-buttons">
                                <a href="javascript:void(0);" class="button-back btn btn-info"
                                   onclick="window.history.back()">返回</a>
                                <a href="javascript:void(0);" class="button-next  btn btn-info btn-l10"
                                   ng-click="addUserSubmit()">提交入职信息</a>
                                <a data-toggle="modal" class="button-next  btn btn-info " onclick="showinfo();">查看预览</a>
                            </p>
                        </div>
                    </section>

                    <!-- Modal -->
                    <div class="modal fade" id="userinfo" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
                         aria-hidden="true">
                        <div class="modal-dialog">
                            <div class="modal-content">
                                <section class="panel">
                                    <div class="panel-heading">
                                        员工入职信息
                                        <i class="add-icon icon-remove" data-dismiss="modal" aria-hidden="true"></i>
                                    </div>
                                    <div class="panel-body">
                                        <div class="bio-row">
                                            <p>
                                                <span>常驻公司</span>{{rzlcStepEntity.baseUser.belongCompanyName}}
                                            </p>
                                        </div>
                                        <div class="bio-row">
                                            <p>
                                                <span>入职部门</span>{{rzlcStepEntity.departmentName}}</p>
                                        </div>
                                        <div class="bio-row">
                                            <p>
                                                <span>拟入职时间</span>{{rzlcStepEntity.readyToWork}}</p>
                                        </div>
                                        <div class="bio-row">
                                            <p>
                                                <span>直接领导</span>{{rzlcStepEntity.baseUser.leaderName}}</p>
                                        </div>
                                        <div class="bio-row">
                                            <p>
                                                <span>岗位名称</span>{{rzlcStepEntity.baseUser.positonName}}
                                            </p>
                                        </div>
                                        <div class="bio-row">
                                            <p>
                                                <span>员工姓名(中文) </span>{{rzlcStepEntity.baseUser.userName}}</p>
                                        </div>
                                        <div class="bio-row">
                                            <p>
                                                <span>员工性别</span>{{getSex(rzlcStepEntity.baseUser.sex)}}</p>
                                        </div>
                                        <div class="bio-row">
                                            <p>
                                                <span>出生日期</span>{{rzlcStepEntity.baseUser.birthday}}</p>
                                        </div>
                                        <div class="bio-row">
                                            <p>
                                                <span>婚姻状况</span>{{getMarriage(rzlcStepEntity.baseUser.isMarriage)}}</p>
                                        </div>
                                        <div class="bio-row">
                                            <p>
                                                <span>联系方式1</span>{{rzlcStepEntity.baseUser.phoneNumber}}</p>
                                        </div>
                                        <div class="bio-row">
                                            <p>
                                                <span>首次参加工作</span>{{rzlcStepEntity.baseUser.firstWorkTime}}</p>
                                        </div>
                                        <div class="bio-row">
                                            <p>
                                                <span>面试人员</span>{{rzlcStepEntity.interviewerManName}}</p>
                                        </div>
                                        <div class="bio-row">
                                            <p>
                                                <span>英文名</span>{{rzlcStepEntity.baseUser.englishName}}</p>
                                        </div>
                                        <div class="bio-row">
                                            <p>
                                                <span>常驻地址</span>{{rzlcStepEntity.baseUser.basedArea}}</p>
                                        </div>
                                        <div class="bio-row">
                                            <p>
                                                <span>是否开通bpm</span>{{rzlcStepEntity.baseUser.willHaveBpm | yesorno}}
                                            </p>
                                        </div>
                                        <div class="bio-row">
                                            <p>
                                                <span>居住地</span>{{rzlcStepEntity.baseUser.address}}</p>
                                        </div>
                                        <div class="bio-row">
                                            <p>
                                                <span>联系方式2</span>{{rzlcStepEntity.baseUser.phoneNumber1}}</p>
                                        </div>
                                        <div class="bio-row">
                                            <p>
                                                <span>个人邮箱</span>{{rzlcStepEntity.baseUser.personalEmail}}</p>
                                        </div>
                                        <div class="bio-row line-row">
                                            <p>备注说明</p>
                                            <p>{{rzlcStepEntity.opinionMsg}}</p>
                                        </div>
                                        <p class="default-buttons">
                                            <a href="#/seatInd" class="button-next btn btn-info btn-nbora"
                                               data-dismiss="modal"
                                               aria-hidden="true">关闭</a>
                                        </p>
                                    </div>
                                    <!-- <div class="panel-bg"></div> -->
                                </section>
                            </div>
                            <!-- /.modal-content -->
                        </div>
                        <!-- /.modal-dialog -->
                    </div>
                    <!-- /.modal -->
                </div>
            </div>
        </section>
    </section>
    <!--main content end-->
</section>

<script src="assets/link/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" src="js/ind/ind.js"></script>